﻿namespace CSharpPro._0915;
    public class Phone
    {
        public string brand { get; set; }
        public int weight { get; set; }
        public long camera { get; set; }
        public int price { get; set; }
        public void PrintPhoneInfo()
        {
            Console.WriteLine("手机信息如下：");
            Console.WriteLine($"品牌(brand)：{brand}");
            Console.WriteLine($"重量(weight)：{weight}g");
            Console.WriteLine($"后置摄像头像素(camera)：{camera}");
            Console.WriteLine($"价格(price)：{price}元");
        }
    }
    